package com.asialjim.wechat.pojo.accesstoken;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <h1><em>ASIAL JIM JAVA DOC</em></h1><hr/>
 * <h2>CLASS DESCRIPTION <i>[ NAME: JsAccessToken ]</i></h2><strong>
 * <p> JS-ACCESS-TOKEN for we-chat user
 * <p> when get we-chat user from tencent server with we-chat user authorize
 * </strong><p><p><em>Copyright &copy; Asial Jim Co., LTD</em><hr/>
 *
 * @author Asial Jim &nbsp;&nbsp; <span>Email:<a href="mailto:asialjim@hotmail.com">asialjim@hotmail.com</a> &nbsp;&nbsp; <a href="asialjim@qq.com">asialjim@qq.com</a></span>
 * @version 1.0.0
 * @since 2021/3/2   &nbsp;&nbsp; JDK 8
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class JsAccessToken implements Serializable {
    private static final long serialVersionUID = 2256353884085784752L;

    /**
     * <h3>FIELD DESCRIPTION</h3>
     * js access token for we-chat user
     */
    private String accessToken;

    /**
     * <h3>FIELD DESCRIPTION</h3>
     * time when access token expired
     */
    private Long expiredAt;

    /**
     * <h3>FIELD DESCRIPTION</h3>
     * refresh token
     */
    private String refreshToken;

    /**
     * <h3>FIELD DESCRIPTION</h3>
     * open id
     */
    private String openId;

    /**
     * <h3>FIELD DESCRIPTION</h3>
     * scope
     */
    private String scope;
}